﻿using System;
using System.Xml.Serialization;

namespace Group_Mail
{
    [Serializable]
    public class Account
    {
        [XmlAttribute("id")]
        public string Id { get; set; }

        public string Name { get; set; }
        public string FullName { get; set; }
        public string Email { get; set; }
        public string ReplyTo { get; set; }
        public string SmtpServer { get; set; }
        public int SmtpServerPort { get; set; }
        public string SmtpServerUser { get; set; }
        public string SmtpServerPassword { get; set; }
        public bool EnableSsl { get; set; }

        public override int GetHashCode()
        {
            return Id.GetHashCode();
        }
    }
}